<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>面板</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"/>
    <meta name="renderer" content="webkit"/>
    <meta name="force-rendering" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <link rel="stylesheet" href="/static/admin/static/component/pear/css/pear.css" />
    <link href="/static/public/libs/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/static/public/libs/codemirror/lib/codemirror.css?v=#(version)"/>
    <link href="/static/public/libs/codemirror/theme/dracula.css?v=#(version)" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="/static/public/libs/codemirror/addon/hint/show-hint.css?v=#(version)" />
    <link href="/static/admin/pages/theme/css/edit.css?v=#(version)" rel="stylesheet"/>
    <script src="/static/public/libs/jquery/jquery-3.5.1.min.js"></script>
    <script src="/static/public/libs/layui-v2.5.6/layui/layui.js"></script>
    <script src="/static/admin/static/component/pear/pear.js"></script>
    <script src="/static/public/libs/codemirror/lib/codemirror.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/mode/javascript/javascript.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/mode/xml/xml.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/mode/css/css.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/mode/htmlmixed/htmlmixed.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/addon/hint/anyword-hint.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/addon/hint/show-hint.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/addon/hint/html-hint.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/addon/hint/css-hint.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/addon/hint/xml-hint.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/addon/hint/javascript-hint.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/addon/selection/active-line.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/addon/fold/xml-fold.js?v=#(version)"></script>
    <script src="/static/public/libs/codemirror/addon/edit/matchtags.js?v=#(version)"></script>
    <script src="/static/public/libs/ztree/js/jquery.ztree.all.min.js"></script>
    <link rel="stylesheet" href="/static/public/libs/ztree/css/zTreeStyle/zTreeStyle.css">
</head>
<body class="pear-container">
<div class="p-container layui-row layui-col-space10">
    <div class="layui-col-md2">
        <div class="layui-card">
            <div class="layui-card-header">
                当前编辑主题: <b>#(theme.name??)</b>
            </div>
            <div class="layui-card-body">
                <div id="fileList"></div>

                <ul id="treeDemo" class="ztree"></ul>
                <div class="tipBox">
                    <p><span class="label">快捷键:</span> Ctrl + s 保存</p>
                    <p><span class="label">主题开发文档:</span> <a href="http://perfree.gitee.io/theme-develop" target="_blank">点击前往</a></p>
                    <p><span class="label">操作:</span> 在文件目录区域点击鼠标右键</p>
                </div>
            </div>

        </div>
    </div>

    <div class="layui-col-md10">
        <div class="layui-card">
            <div class="layui-card-header">
                当前编辑文件: <b id="currEditFile">#(theme.path??)/#( currEditFile??)</b>
                <button type="button"
                        class="pear-btn pear-btn-md pear-btn-primary saveFileBtn">保存文件
                </button>
            </div>
            <div class="layui-card-body">
                <textarea class="form-control" id="code" name="code">#(content??)</textarea>
                <input type="hidden" value="#(theme.path??)" name="path" id="path">
                <input type="hidden" value="#(currEditFilePath??)" name="currEditFilePath" id="currEditFilePath">
            </div>
        </div>
    </div>

</div>

<div id="rMenu" class="treeRightMenu">
    <ul>
        <li id="m_add">新建文件</li>
        <li id="m_addDir">新建文件夹</li>
        <li id="m_uploadFile">上传文件</li>
        <li id="m_rename">重命名</li>
        <li id="m_del">删除</li>
    </ul>
</div>
<script src="/static/admin/pages/theme/js/edit.js?v=#(version)"></script>
</body>
</html>